﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/SecretaryMaster.Master" AutoEventWireup="true" CodeBehind="BuscarActa.aspx.cs" Inherits="Interfaces.Acta.BuscarActa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 155px;
        }
        .style3
        {
            width: 133px;
        }
        .style4
        {
            width: 73px;
        }
        .style5
        {
            width: 30px;
        }
        .style6
        {
            width: 132px;
        }
        .style7
        {
            width: 46px;
        }
        .style8
        {
            width: 27px;
        }
        .style9
        {
            width: 87px;
        }
        .style10
        {
            width: 111px;
        }
        .style12
        {
            width: 79px;
        }
        .style13
        {
            width: 191px;
        }
        .style14
        {
            width: 81px;
        }
        .style15
        {
            width: 41px;
        }
        .style16
        {
            width: 65px;
        }
        .style17
        {
            width: 139px;
        }
        .style18
        {
            width: 78px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" GroupingText="Buscar Acta" 
        style="text-align: left; margin-top: 10px;" Height="785px" 
    Width="935px">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <table style="width:100%;">
                    <tr>
                        <td class="style42">
                            </td>
                        <td class="style43">
                            <asp:RadioButton ID="RadioButtonFecha" runat="server" GroupName="Buscar" 
                                Text="Por intervalo de fecha" AutoPostBack="True" Checked="True" 
                                oncheckedchanged="RadioButtonFecha_CheckedChanged" />
                        </td>
                        <td class="style43">
                            </td>
                    </tr>
                    <tr>
                        <td class="style40">
                            &nbsp;</td>
                        <td>
                            <asp:RadioButton ID="RadioButtonNro" runat="server" GroupName="Buscar" 
                                Text="Por número y año" AutoPostBack="True" 
                                oncheckedchanged="RadioButtonNro_CheckedChanged" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style40">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
                <br />
                <asp:Panel ID="Panel2" runat="server" GroupingText="Buscar">
                    <table style="width: 100%; margin-bottom: 6px;">
                        <tr>
                            <td class="style4">
                                &nbsp;</td>
                            <td class="style5">
                                De:</td>
                            <td class="style6">
                                <asp:TextBox ID="deFecha" runat="server" Enabled="False" 
                                    style="text-align: left" Width="120px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="deFecha_CalendarExtender" runat="server" 
                                    Format="yyyy-MM-dd" PopupButtonID="ImageButton1" TargetControlID="deFecha">
                                </ajaxToolkit:CalendarExtender>
                            </td>
                            <td class="style2">
                                <asp:ImageButton ID="ImageButton1" runat="server" 
                                    ImageUrl="~/Images/calendar.jpg" />
                            </td>
                            <td class="style8">
                                A:</td>
                            <td class="style3">
                                <asp:TextBox ID="aFecha" runat="server" Enabled="False" 
                                    style="margin-left: 0px" Width="120px"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender ID="aFecha_CalendarExtender" runat="server" 
                                    Format="yyyy-MM-dd" PopupButtonID="ImageButton2" TargetControlID="aFecha">
                                </ajaxToolkit:CalendarExtender>
                            </td>
                            <td class="style9">
                                <asp:ImageButton ID="ImageButton2" runat="server" 
                                    ImageUrl="~/Images/calendar.jpg" />
                            </td>
                            <td>
                                <asp:Button ID="BuscarButton" runat="server" onclick="BuscarButton_Click" CssClass="JCIstyle"
                                    Text="Buscar" Width="60px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="Panel3" runat="server" GroupingText="Buscar" Visible="False">
                    <table style="width: 100%; margin-bottom: 6px;">
                        <tr>
                            <td class="style12">
                                &nbsp;</td>
                            <td class="style15">
                                Año:</td>
                            <td class="style7">
                                <asp:TextBox ID="AnioText" runat="server" MaxLength="4" 
                                    style="margin-left: 0px" Width="120px"></asp:TextBox>
                                <ajaxToolkit:FilteredTextBoxExtender ID="AnioText_FilteredTextBoxExtender" 
                                    runat="server" FilterType="Numbers" TargetControlID="AnioText">
                                </ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                            <td class="style10">
                                &nbsp;</td>
                            <td class="style16">
                                Número:</td>
                            <td class="style17">
                                <asp:TextBox ID="NroText" runat="server" MaxLength="4" Width="120px"></asp:TextBox>
                                <ajaxToolkit:FilteredTextBoxExtender ID="NroText_FilteredTextBoxExtender" 
                                    runat="server" FilterType="Numbers" TargetControlID="NroText">
                                </ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                            <td class="style18">
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="BuscarAño" runat="server" onclick="BuscarAño_Click" CssClass="JCIstyle"
                                    Text="Buscar" Width="60px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Label ID="LabelError" runat="server" ForeColor="Red"></asp:Label>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
                <table style="width:100%; height: 288px;">
                    <tr>
                        <td class="style13">
                            &nbsp;</td>
                        <td class="style12">
                        
                            <asp:DataList ID="DataList1" runat="server" 
                                onitemcommand="DataList1_ItemCommand" 
                                onselectedindexchanged="DataList1_SelectedIndexChanged">
                                <HeaderTemplate>
                                    <tr style="color: #000000">
                                        <td style='border:2px solid #123456;' bgcolor="#3a67b1">
                                            Nro</td>
                                        <td style='border:2px solid #123456;' bgcolor="#3a67b1">
                                            Fecha</td>
                                        <td style='border:2px solid #123456;' bgcolor="#3a67b1">
                                            Fecha Ultima modificación</td>
                                        
                                        <td style='border:2px solid #123456;' bgcolor="#3a67b1">
                                            Estadado de la orden(Aprobada/No aprobada)</td>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr style="color: #000000">
                                        <td style='border:2px solid #123456;'>
                                            <asp:Label ID="Nro" runat="server" Text='<%# Eval("Nro") %>'></asp:Label>
                                        </td>
                                        <td style='border:2px solid #123456;'>
                                            <asp:Label ID="Fecha" runat="server" Text='<%# Eval("Fecha") %>'></asp:Label>
                                        </td>
                                        <td style='border:2px solid #123456;'>
                                            <asp:Label ID="FechaUltimaModificacion" runat="server" 
                                                Text='<%# Eval("FechaUltimaModificacion") %>'></asp:Label>
                                        </td>
                                        
                                        <td style='border:2px solid #123456;'>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("AprobadaBuscar") %>'></asp:Label>
                                        </td>
                                        <td style='border:2px solid #123456;'>
                                            <asp:LinkButton ID="Modificar" runat="server" CommandName="Modificar" 
                                                Visible='<%# ((bool)Eval("Secre")) == false ? false:true %>'>Modificar</asp:LinkButton>
                                        </td>
                                        <td style='border:2px solid #123456;'>
                                            <asp:LinkButton ID="Ver" runat="server" CommandName="Ver">Ver</asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:DataList>
                            <br />
                        </td>
                        <td>
                            <br />
                            <br />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        
        <br />
        <br />
    </asp:Panel>
    
        <br />
        <br />
</asp:Content>